home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / CALib & You… / Source / CASample / CAS_Misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-07  |  2.3 KB  |  102 lines  |  [TEXT/MPS ]

  1. /*
  2.  
  3.     File:        CAS_Misc.h
  4.  
  5.     Contains:    Header for Misc utility routines.
  6.  
  7.     Written by:    David H Nelson
  8.  
  9.     Copyright © 1988-1995 ComponentWorks, All rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <1>     1988    DHN        Created.
  14. */
  15.  
  16. #if !defined(_H_CAS_Misc)
  17. #define _H_CAS_Misc
  18.  
  19. #include <Printing.h>
  20. #include "CAS_CTools.h"
  21.  
  22. #if defined(__cplusplus)
  23. extern "C"
  24. {
  25. #endif
  26.  
  27. /*--------------------------------------------------------------------------*/
  28. /* Misc.c */
  29.  
  30. short        howManyCopies(        THPrint hPrint);
  31. Boolean        checkPrintHandle(    THPrint *hPrint);
  32.  
  33. short        NumToolboxTraps(    void);
  34. TrapType    GetTrapType(        short theTrap);
  35. Boolean        TrapAvailable(        short theTrap);
  36.  
  37. CIconHandle    GetCICN(            short id, Boolean has32BitQD);
  38. void        PlotCICN(            Rect *rect, CIconHandle cicn, Boolean has32BitQD );
  39. void        drawSICN(            Ptr pSICN,short iIndex,Rect *rDst);
  40.  
  41. Handle        next1Resource(        ResType theResType,Handle theHandle);
  42.  
  43. void        GetFontState(FontState *theFontState);
  44. void        SetFontState(FontState *theFontState);
  45.  
  46. void        RectLocalToGlobal(Rect *theRect);
  47. void        RectGlobalToLocal(Rect *theRect);
  48.  
  49. void        RgnLocalToGlobal(RgnHandle theRgn);
  50. void        RgnGlobalToLocal(RgnHandle theRgn);
  51.  
  52. Rect *        rCenterRectOnPoint(    Point pSrc,Rect *rDst);
  53. Rect *        rCenterRectInRect(    Rect *rSrc,Rect *rDst);
  54.  
  55. void        ZoomRect(Rect *smallRect,Rect *bigRect,Boolean zoomUp);
  56.  
  57. pascal Handle    newhandleclear(    long lSize);
  58. pascal Ptr        newptrclear(    long lSize);
  59.  
  60. Boolean        bAlmostEqual(        Point pt1,Point pt2,short tolerance);
  61. void        ImAlive(            void);
  62. void        Wait(                long numTicks);
  63. unsigned long    lRandom(        void);
  64. OSType        lGetApplCreator(    void);
  65. ulong        ulGetApplDate(        void);
  66. Boolean        bValidSystem(        void);
  67. ulong        ulTime(                void);
  68.  
  69. MenuHandle    mhSetMenuItem(        Boolean bEnbable,MenuHandle theMenu,short theItem);
  70.  
  71. short        iToolVersion(        Str255 sVersion);
  72.  
  73. Boolean        bSetCursor(            short iCursorID);
  74. Boolean        bSetCursorWatch(    void);
  75. short        iGetCursor(            void);
  76. void        spinCursor(            void);
  77.  
  78.  
  79.  
  80. short        iEventModifiers(    void);
  81.  
  82. void        blockErase(            Ptr pBuffer,long lSize);
  83. void        blockRandomize(        register Ptr pBuffer, long lSize);
  84.  
  85. void        GetMainScreenRect(    Rect *theMainScreenRect);
  86. Boolean        EqualPicts (PicHandle pictA, PicHandle pictB);
  87.  
  88. void        MakeDatedUniqueFSSpec (FSSpec* fsSpec);
  89. void        CopyFile (FSSpec* src, FSSpec* dest);
  90.  
  91. void CheckBeta(void);
  92.  
  93. void GetOrigin (Point* origin);
  94.  
  95. #if defined(__cplusplus)
  96. }
  97. #endif
  98.  
  99.  
  100. #endif
  101.  
  102.